package com.ransj.iphone.utils;

import com.ransj.iphone.IConfig;

import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;

/**
 * iphone sp
 * 
 * @author ranshengju
 * 
 */
public class Isp {
	private static Isp mInstance;
	private SharedPreferences mPrefs;

	private Isp(Context context) {
		mPrefs = context.getSharedPreferences(IConfig.SP_NAME,
				Activity.MODE_WORLD_READABLE | Activity.MODE_WORLD_WRITEABLE);
	}
	
	public static Isp getInstance(Context context){
		if(mInstance == null){
			mInstance = new Isp(context);
		}
		return mInstance;
	}
	
	public SharedPreferences getPrefs(){
		return mPrefs;
	}

}
